﻿@model AceMobile.Models.Tablets.Tablet

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Tablet</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Size)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Size)
            @Html.ValidationMessageFor(model => model.Size)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ConciseFeature)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConciseFeature)
            @Html.ValidationMessageFor(model => model.ConciseFeature)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DetailFeature)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DetailFeature)
            @Html.ValidationMessageFor(model => model.DetailFeature)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImageUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageUrl)
            @Html.ValidationMessageFor(model => model.ImageUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ManufacturingDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ManufacturingDate)
            @Html.ValidationMessageFor(model => model.ManufacturingDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MadeIn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MadeIn)
            @Html.ValidationMessageFor(model => model.MadeIn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Amount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Amount)
            @Html.ValidationMessageFor(model => model.Amount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SumAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SumAmount)
            @Html.ValidationMessageFor(model => model.SumAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ViewAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ViewAmount)
            @Html.ValidationMessageFor(model => model.ViewAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TabletOSID, "TabletOS")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TabletOSID", String.Empty)
            @Html.ValidationMessageFor(model => model.TabletOSID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TabletProducerID, "TabletProducer")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TabletProducerID", String.Empty)
            @Html.ValidationMessageFor(model => model.TabletProducerID)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
